import ResType from './type/ResType.js'


const routes = [
	{
		name: '测试',
		path: '/',
		method: 'get',
		handler: async function () {
			return 'hello test';
		},
	},
	// {
	// 	name: '测试',
	// 	path: '/:id',
	// 	method: 'get',
	// 	handler: async function ({id}) {
	// 		return `hello ${id}`;
	// 	},
	// },
	{
		name: '测试',
		path: '/view',
		method: 'get',
		view: 'index',
		handler: async () => {
			return new ResType(0, null, {});
		}
	}
];

export default routes;